﻿////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// <copyright>Copyright 2008-2011 Andreas Huber Doenni</copyright>
// Distributed under the Microsoft Public License (Ms-PL).
// See accompanying file License.txt or copy at http://mews.codeplex.com/license.
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

namespace Mews.Mime
{
    /// <summary>Represents a part in a header field body.</summary>
    internal struct HeaderFieldBodyPart
    {
        private readonly string part;
        private readonly bool canContainEncodedWords;

        ////////////////////////////////////////////////////////////////////////////////////////////////////////////////

        internal HeaderFieldBodyPart(string part, bool canContainEncodedWords)
        {
            this.part = part == null ? string.Empty : part;
            this.canContainEncodedWords = canContainEncodedWords;
        }

        internal string Part
        {
            get { return this.part; }
        }

        internal bool CanContainEncodedWords
        {
            get { return this.canContainEncodedWords; }
        }
    }
}
